package com.lixixi.pojo;

import java.sql.Date;

public class User
{
	private Integer id;
	private String username;
	private Date birthday;
	private String sex;
	private String address;

	public User()
	{
	}

	public User(Integer id, String username, Date birthday, String sex, String address)
	{
		this.id = id;
		this.username = username; //表中数据名为user_name,为了避免数据不重名而导致获取不到数据,可对sql语句使用别名,或者打开驼峰映射
		this.birthday = birthday;
		this.sex = sex;
		this.address = address;
	}

	public Integer getId()
	{
		return id;
	}

	public String getUsername()
	{
		return username;
	}

	public Date getBirthday()
	{
		return birthday;
	}

	public String getSex()
	{
		return sex;
	}

	public String getAddress()
	{
		return address;
	}

	@Override
	public String toString()
	{
		return "User{" +
				"id=" + id +
				", username='" + username + '\'' +
				", birthday=" + birthday +
				", sex='" + sex + '\'' +
				", address='" + address + '\'' +
				'}';
	}
}
